﻿@model HomePageBestsellersModel
@using Nop.Web.Framework.UI;
@using Nop.Web.Models.Catalog;
@if (Model.Products.Count > 0)
{
    <div class="bestsellers">
        <div class="categoryTitle">
            <h1>
                @T("Bestsellers")
            </h1>
        </div>
        <div class="clear">
        </div>
         @if (Model.UseSmallProductBox)
         {
            @(Html.DataList<ProductOverviewModel>(Model.Products, 3,
            @<div class="item-box">
                @Html.Partial("_ProductSmallBox", @item)
            </div>
                ))
         }
         else
         {
            <div class="category-products">
            @(Html.DataList<ProductOverviewModel>(Model.Products, 3,
                @<div class="item-box">
                @Html.Partial("_ProductBox", @item)
                </div>
                ))
            </div>
         }
    </div>
}